package com.racedepartment.model;

public class Mode extends Model {

	private int mode_sk;
	private int rim_sk;
	private String name;

	public static final String TABLE_NAME = "MODE";
	
	public static final String MODE_SK = "MODE_SK";
	public static final String RIM_SK = "RIM_SK";
	public static final String NAME = "NAME";
	public static final String[] FIELDS = { MODE_SK, RIM_SK, NAME };
	public static final int[] DATATYPES = {DATATYPE_INT, DATATYPE_INT, DATATYPE_TEXT};
	

	/**
	 * @param mode_sk
	 * @param rim_sk
	 * @param name
	 */
	public Mode(int mode_sk, int rim_sk, String name) {
		super();
		this.mode_sk = mode_sk;
		this.rim_sk = rim_sk;
		this.name = name;
	}

	/**
	 * @return the mode_sk
	 */
	public int getMode_sk() {
		return mode_sk;
	}

	/**
	 * @param mode_sk
	 *            the mode_sk to set
	 */
	public void setMode_sk(int mode_sk) {
		this.mode_sk = mode_sk;
	}

	/**
	 * @return the rim_sk
	 */
	public int getRim_sk() {
		return rim_sk;
	}

	/**
	 * @param rim_sk
	 *            the rim_sk to set
	 */
	public void setRim_sk(int rim_sk) {
		this.rim_sk = rim_sk;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String[] getValues() {
		String[] values = new String[3];
		values[0] = new Integer(getMode_sk()).toString();
		values[1] = new Integer(getRim_sk()).toString();
		values[2] = getName();
		return values;
	}

	@Override
	public String[] getFields() {
		return FIELDS;
	}

	@Override
	public int[] getDataTypes() {
		return DATATYPES;
	}

}
